package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
//评论@表
public class Commentait extends BaseDomain{
    //评论对象
    private Comment comment;
    //评论人
    private User commentator;
    //评论的内容
    private String content;
    //被@人的ID
    private User aitedPerson;
    //是否被查看
    private Boolean isViewed = false;
    //type类型0为攻略评论 1为游记评论
    private Integer type = 0;
    //@表日期字段
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

}